﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using RL.ObjectLayer;

namespace RL.SMR
{
    public class SMRSession
    {
        private const string SMRUSER = "SMRUser";

        public UserOL User
        {
            get
            {
                if (HttpContext.Current.Session[SMRUSER] != null)
                {
                    return (UserOL)HttpContext.Current.Session[SMRUSER];
                }
                else
                {
                    return null;
                }
            }

            set
            {
                HttpContext.Current.Session[SMRUSER] = value;
            }

        }
    }
}
